package com.mercury.beans;

import java.util.HashSet;
import java.util.Set;

public class Customer {
	private int cid;
	@SuppressWarnings("unused")
	private String address;
	@SuppressWarnings("unused")
	private Set<String> emails;
	private String name;
	
	public void setCid(int cid) {
		this.cid = cid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Customer(){
		emails = new HashSet<String>();
	}
	public Customer(String name){
		this();  //call constructor
		this.name = name;
	}
	public int getCid(){
		return cid;
	}	
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Set<String> getEmails() {
		return emails;
	}
	public void setEmails(Set<String> emails) {
		this.emails = emails;
	}
	//
	public void addEmail(String email){
		emails.add(email);
	}
	public void removeEmail(String email){
		emails.remove(email);
	}
}
